<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="<c:url value="/LoginServlet"></c:url>" method="post">
		用户名：<input name="username" type="text" value=${user.username }><span style="color:red">${errors.username}</span><br/>
		密&ensp;&ensp;码：<input name="password" type="text" value=${user.password }><span style="color:red">${errors.password}</span><br/>
		<p style="color:red">${msg}</p>
		<input type="submit" value="登录"/>&emsp;<button type="button" onClick="fnToRegist()">注册</button>
	</form>
</body>
<script>
	function fnToRegist(){
		window.location.href = "<c:url value='/jsps/regist.jsp'></c:url>"
	}
</script>
</html>